package cn.u313.entry;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Getter
@Setter
@Entity
@Table(name = "t_present_main")
public class PresentEntry {
    @Id
    private int id;
    private String name;//名称
    private int number;//数量
    private int price;//价格
    private String type;//类型
    private long endtime;//结束时间
    private long strattime;//开始时间
    private String createtime;//创建时间
    private int cycle;//领取周期
    private int exchange;//兑换了的数量
    private String  text;//详情

    private int  hasShow;//是否可兑换

    @Override
    public String toString() {
        return "【"+getId()+"】"+name+"\n";
    }
}
